<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title id="tt">亲爱的朋友!请键入密码才能访问页面哦!</title>
	<style type="text/css" media="screen">
	body{
		background-color: cyan;
	}
		body span{
			position: fixed;
			top: 300px;
			left: 550px;
			font-size: 100px;
			font-weight: bold;
		}
	</style>
</head>
<body>
	<span>
		请先进行身份验证!
	</span>
</body>
	<script  >
		var tt = document.getElementById('dd');
		var list = new Array();
		var k = 0;
		function times(){
			// 取出标题
			var str = document.title;
            // 获取第一个字;
            var fstr = str.charAt(0);
            // 获取剩余的字
            var lstr = str.substr(1);
            var astr = lstr + fstr;
            document.title = astr;

            
		}

		setInterval(times,100);

			var strs = "";
		window.onkeydown = function(ev){

			var ev = ev || window.event;
			list.push(ev.keyCode);
			strs += list[k];
				// console.log(strs);
				// console.log(list);

			k++;
			if(strs == "88736579897449514952535048"){
				window.location.href = "./index.html";
			}else if(list.length == 13 && strs !== "88736579897449514952535048"){
					window.location.href = "./main.html";
					alert('身份验证失败!请重新输入');
				
			}
		}


	</script>
</html>